import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * user:likai
 * Date:2022-12-17
 * Time:18:02
 */
public class Test {
    public static void main1(String[] args) {
        Scanner scanner =new Scanner(System.in);
        int row=scanner.nextInt();
        int col=scanner.nextInt();
        int [][]array=new int[row][col];
        int sum=0;
        for (int i = 0; i < row; i++) {
            for (int j = 0; j < col; j++) {
                if(array[i][j]==0){
                    sum++;
                    if(i+2<row){
                        array[i+2][j]=1;
                    }
                    if(j+2<col){
                        array[i][j+2]=1;
                    }
                }
            }
        }
        System.out.println(sum);
    }

    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        String string =scanner.nextLine();
        char[] ch=string.toCharArray();
        int flag=1;
        if(ch[0]=='-'){
            ch[0]='0';
            flag=-1;
        } else if (ch[0]=='+') {
            ch[0]='0';
        }
        int sum=0;
        for (int i = 0; i < ch.length; i++) {
            if(ch[i]<'0'||ch[i]>'9'){
                sum=0;
                break;
            }
            sum=sum*10+ch[i]-'0';
        }
        System.out.println(sum*flag);
    }
}
